<?php 
include "connect.php";
$date=$_POST['date'];
$board_id=$_POST['board_id'];
$year=$_POST['year'];
$class_id=$_POST['class_id'];
$session_id=$_POST['session_id'];
$dept_id=$_POST['dept_id'];
$subject_id=$_POST['subject_id'];
$total_marks=$_POST['total_marks'];
$roll_no_board=$_POST['roll_no_board'];
$roll_no=$_POST['roll_no'];
$obtain_marks=$_POST['obtain_marks'];

	$sql=mysql_query("UPDATE board SET date='$date',board_id='$board_id',year='$year',class_id='$class_id',session_id='$session_id',dept_id='$dept_id',subject_id='$subject_id',total_marks='$total_marks' where board_id='$board_id'");
	mysql_query("UPDATE board_detail SET roll_no_board='$roll_no_board',roll_no='$roll_no',obtain_marks='$obtain_marks' where board_id='$board_id' and roll_no_board='$roll_no_board'");


header("location: update_board_success.php");

?>